<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>zzzzzz</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<link type="text/css" rel="stylesheet" href="${ctx}/res/css/main.css" />
	<script type="text/javascript" src="${ctx}/res/js/jquery/jquery-1.6.1.min.js"></script>
	<script type="text/javascript">
		var jq = jQuery.noConflict();
	</script>
	<script type="text/javascript" src="${ctx}/res/js/main.js"></script>
	<script type="text/javascript" src="${ctx}/res/js/sectionsheet.js"></script>
	<script type="text/javascript" src="${ctx}/res/js/edit_password.js"></script>
</head>
<body>

<c:set var="isGeneralSelected" value="${false}"/>
<c:set var="isOtherAccountsSelected" value="${false}"/>
<c:set var="isNotificationsSelected" value="${false}"/>
<c:set var="isGeneralSelected" value="${false}"/>

<c:choose>
	<c:when test="${tab == 'general' || tab == null || empty tab}">
		<c:set var="isGeneralSelected" value="${true}"/>
	</c:when>
	<c:when test="${tab == 'other_accounts'}">
		<c:set var="isOtherAccountsSelected" value="${true}"/>
	</c:when>
	<c:when test="${tab == 'email_notifications'}">
		<c:set var="isNotificationsSelected" value="${true}"/>
	</c:when>
	<c:when test="${tab == 'privacy'}">
		<c:set var="isPrivacySelected" value="${true}"/>
	</c:when>
	<c:otherwise>
		<c:set var="isGeneralSelected" value="${true}"/>
	</c:otherwise>
</c:choose>

<%@ include file="/WEB-INF/common/header.jsp" %>

<div id="account-settings" class="site-wrap wrap">
	<div class="content-wrap wrap">
		<div class="content-left-col">
			<div class="col-inner">
				<%@ include file="include/account_settings/as_content_left.jsp" %>
			</div>
		</div>
		<div class="content-right-col">
			<div class="col-inner">
				<%@ include file="include/account_settings/as_content_right.jsp" %>
			</div>
		</div>
	</div>
	<div class="sidebar">
		<%@ include file="include/account_settings/as_sidebar.jsp" %>
	</div>
</div>

<%@ include file="/WEB-INF/common/footer.jsp" %>

<script type="text/javascript">

var as_general_tabSheet = new TabSheet({
	'j_tabsheet' : [
						{ 'j_tab' : jq('a[href$="#as-general-section-email"]'), 'j_tab_content' : jq('#as-general-section-email'), 'j_tab_dependency' : jq('a[href$="#as-general-section-email"]'), 'j_tab_selected_by_default' : false, 'j_tab_url' : 'http://localhost:8080/zzzzzz/account_settings?tab=general&section=email' },
						{ 'j_tab' : jq('a[href$="#as-general-section-password"]'), 'j_tab_content' : jq('#as-general-section-password'), 'j_tab_dependency' : jq('a[href$="#as-general-section-password"]'), 'j_tab_selected_by_default' : false, 'j_tab_url' : 'http://localhost:8080/zzzzzz/account_settings?tab=general&section=password' }
				   ],
	'j_tab_content_cancel' : jq('.as-general-cancel'),
	'_url_rewrite' : true
});

var editPassword = new EditPassword({
	'j_password_edit_form' : jq("#password-edit-form"),
	'j_password_edit_cur' : jq("#password-edit-cur"),
	'j_password_edit_new' : jq("#password-edit-new"),
	'j_password_edit_re_new' : jq("#password-edit-re-new"),
	'j_password_edit_cur_error_msg' : jq("#password-edit-cur-error-msg"),
	'j_password_edit_new_error_msg' : jq("#password-edit-new-error-msg"),
	'j_password_edit_re_new_error_msg' : jq("#password-edit-re-new-error-msg"),
	'j_password_edit_submit' : jq("#password-edit-submit"),
	'j_password_edit_submit_status' : jq("#password-edit-submit-status")
});

</script>

</body>
</html>